package tjcu.archives.exception;

import tjcu.archives.vo.SamEnumVO;

/**
 * @author cd
 * @version 1.0
 * @date 2022/4/16 23:06
 */
public class SAMException extends RuntimeException{
    private Integer code;

    public SAMException(Integer code,String message){
        super(message);
        this.code = code;
    }
    public SAMException(SamEnumVO enums) {
        super(enums.getMsg());
        this.code = enums.getCode();
    }

    public Integer getCode() {
        return code;
    }
}
